package com.it.security.service.impl;

import com.it.security.dao.UserDao;
import com.it.security.pojo.User;
import com.it.security.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;


    @Override
    public User getUserById(Long id) {

        User user = userDao.getUserById(id);
        return user;
    }

    @Override
    public User findByUsername(String username) {
        return userDao.findByUsername(username);
    }


}
